package com.shop.autoshop.pay.wxpay;

import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult;
import com.github.binarywang.wxpay.bean.result.WxPayOrderQueryResult;
import com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderResult;

/**
 * @version: 1.0.1
 * @author: stopboot
 * @date: 2022/07/27 11:21
 * @description: 支付示例-后端接口服务->微信支付 接口定义
 **/
public interface WxpayService {


    /**
    * 微信支付下单
    *
    * @param wxpayCreateBean
    * @return WxpayOrderCreate
    */
    WxPayUnifiedOrderResult orderPreCreate(WxpayCreateBean wxpayCreateBean);

    WxPayOrderNotifyResult notify(String xmlData);

    /**
     * 订单信息查询
     * @param orderNum
     * @return
     */
    WxPayOrderQueryResult orderQuery(String orderNum);
}
